/* =========================================================
   Lead Hero ("Leading Enterprise AI With Conviction")
   File: wwwroot/css/lead-hero.css
   Used by: Views/Partials/blocklist/Components/leadHeroBlock.cshtml
   ========================================================= */
.ld-hero {
  --lh-navy: #14256b;
  --lh-orange: #ff9a45;
  --lh-gutter: 6.8vw;
  --lh-header: 0px;                 /* set to your header height if the header sits over the hero */
  --lh-ease-out: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(560px, 53vw, 1380px);
  padding: calc(var(--lh-header) + clamp(20px, 2vw, 52px)) var(--lh-gutter) clamp(40px, 5.6vw, 146px);
  background: #1d3a6a;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.ld-hero *, .ld-hero *::before, .ld-hero *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- background (slow settle on load + gentle mouse drift) ---------- */
.ld-hero__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ld-hero__bg {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: 65% center;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1.02));
  transition: transform 2.6s var(--lh-ease-out);
  will-change: transform;
}
.ld-hero.is-ready .ld-hero__bg { --zoom: 1.02; }
.ld-hero:not(.is-ready) .ld-hero__bg { --zoom: 1.09; }
.ld-hero__media::after {                     /* keeps the text side readable */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 52, .78) 0%, rgba(8, 20, 52, .5) 32%, rgba(8, 20, 52, .12) 58%, rgba(8, 20, 52, 0) 75%),
    linear-gradient(180deg, rgba(8, 20, 52, .35) 0%, rgba(8, 20, 52, 0) 22%, rgba(8, 20, 52, 0) 80%, rgba(8, 20, 52, .3) 100%);
}

/* ---------- content ---------- */
.ld-hero__content { display: flex; flex-direction: column; flex: 1; }
.ld-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: clamp(10px, .62vw, 16px);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ld-hero__crumbs a { color: inherit; text-decoration: none; }
.ld-hero__crumbs a:hover { text-decoration: underline; }
.ld-hero__crumbs li + li::before { content: "›"; margin-right: 6px; }

.ld-hero__body {
  max-width: clamp(320px, 44vw, 1140px);
  margin-top: auto;                          /* sits in the lower part of the hero, like the design */
  padding-top: clamp(40px, 6vw, 156px);
}
.ld-hero__heading {
  font-size: clamp(32px, 2.85vw, 74px);
  font-weight: 600;
  line-height: 1.22;
  color: #fff;
}
.ld-hero__lead {
  max-width: 40vw;
  margin-top: clamp(10px, 1vw, 26px);
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .92vw, 24px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
}

/* ---------- buttons ---------- */
.ld-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.1vw, 28px);
  margin-top: clamp(18px, 2vw, 52px);
}
.ld-hero__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 78px);
  padding: .5em .5em .5em 1.1em;
  overflow: hidden;
  isolation: isolate;
  background: var(--lh-orange);
  font-size: clamp(12px, .88vw, 23px);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.ld-hero__btn-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: #fff;
}
.ld-hero__btn-dot::before {                 /* white fill that spreads across the button on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #fff;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.ld-hero__btn-dot svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--lh-orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--lh-ease-out);
}
.ld-hero__btn span:first-child { position: relative; z-index: 1; transition: color .35s ease .05s; }
.ld-hero__btn:hover .ld-hero__btn-dot::before,
.ld-hero__btn:focus-visible .ld-hero__btn-dot::before { transform: scale(18); }
.ld-hero__btn:hover span:first-child,
.ld-hero__btn:focus-visible span:first-child { color: var(--lh-orange); }
.ld-hero__btn:hover .ld-hero__btn-dot svg { transform: translateX(2px); }

.ld-hero__link {
  font-size: clamp(12px, .88vw, 23px);
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .3s ease, text-underline-offset .3s ease;
}
.ld-hero__link:hover { color: var(--lh-orange); text-underline-offset: 6px; }
.ld-hero a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- 2 x 2 glass points ---------- */
.ld-hero__points {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: clamp(6px, .75vw, 18px) clamp(8px, .9vw, 22px);
  margin-top: clamp(20px, 2.4vw, 62px);
  list-style: none;
}
.ld-hero__point {
  display: flex;
  align-items: center;
  gap: clamp(8px, .7vw, 18px);
  min-width: clamp(170px, 14vw, 360px);
  padding: clamp(7px, .55vw, 14px) clamp(10px, .9vw, 22px);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(11px, .72vw, 19px);
  font-weight: 500;
  color: #fff;
  transition: background-color .5s ease, border-color .5s ease, transform .5s var(--lh-ease-out);
}
.ld-hero__point:hover { background-color: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
.ld-hero__check {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(14px, 1vw, 26px);
  height: clamp(14px, 1vw, 26px);
  border-radius: 50%;
  background: #fff;
  transition: background-color .4s ease;
}
.ld-hero__check svg { width: 70%; height: 70%; fill: none; stroke: var(--lh-navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ld-hero__point:hover .ld-hero__check { background: var(--lh-orange); }
.ld-hero__point:hover .ld-hero__check svg { stroke: #fff; }

/* ---------- entrance ---------- */
.ld-hero.js-anim .ld-hero__fx { opacity: 0; transform: translateY(18px); }
.ld-hero.js-anim.is-ready .ld-hero__fx {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease var(--fd, 0s), transform 1.1s var(--lh-ease-out) var(--fd, 0s),
              background-color .5s ease, border-color .5s ease;
}
.ld-hero.js-anim.is-ready .ld-hero__point.ld-hero__fx:hover { transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ld-hero { --lh-gutter: 32px; }
  .ld-hero__body, .ld-hero__lead { max-width: 640px; }
}
@media (max-width: 760px) {
  .ld-hero { --lh-gutter: 20px; min-height: 0; }
  .ld-hero__bg { object-position: 70% center; }
  .ld-hero__media::after { background: linear-gradient(180deg, rgba(8, 20, 52, .55) 0%, rgba(8, 20, 52, .65) 100%); }
  .ld-hero__body { padding-top: 120px; }
  .ld-hero__points { grid-template-columns: 1fr; }
  .ld-hero__point { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-hero__bg { transition: none; }
}